<template>
  <div class="home-page">
    <div class="first-plate">
      <News />
      <NoticeAnnouncement />
    </div>
    <div class="first-plate">
      <OptTodo @change="handleChange"></OptTodo>
      <OptDoing @change="handleChange"> </OptDoing>
    </div>
    <div class="first-plate">
      <OptDone @change="handleChange"></OptDone>
      <OptRefuse @change="handleChange"></OptRefuse>
    </div>
  </div>
</template>

<script lang="ts" setup>
import News from '@/views/homepage/workbench/news/Index.vue'
import OptTodo from './issuesTodo/OptTodo.vue'
import OptDoing from './issuesTodo/OptDoing.vue'
import OptDone from './issuesTodo/OptDone.vue'
import OptRefuse from './issuesTodo/OptRefuse.vue'
import NoticeAnnouncement from '@/views/homepage/workbench/notice/Index.vue'
import { store } from '@/store/issues'
const issueStore = store()
issueStore.getData()
/**
 * @desc: 修改标签后的回调
 */
const handleChange = () => {
  issueStore.getData()
}
</script>
<style lang="less" scoped>
.home-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 97%;
  margin-top: 10px;
  .first-plate {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 32.8%;
    height: 100%;
  }
}
</style>
